﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;

namespace QuanLyDaiLy.Model
{
    [Table(Name="ChiTietPhieuXuat")]
    public class CChiTietPhieuXuat
    {
        #region Properties
        [Column(Name = "MaChiTiet", IsPrimaryKey = true)]
        public ulong MaChiTiet { get; set; }

        [Column(Name = "MaPhieu")]
        public ulong MaPhieu { get; set; }

        [Column(Name = "MaMatHang")]
        public ulong MaMatHang { get; set; }

        [Column(Name = "MaDonViTinh")]
        public ulong MaDonViTinh { get; set; }

        [Column(Name = "SoLuong")]
        public ulong SoLuong { get; set; }

        [Column(Name = "DonGia")]
        public ulong DonGia { get; set; }

        [Column(Name="ThanhTien")]
        public ulong ThanhTien { get; set; }
        #endregion

        #region Constructor
        public CChiTietPhieuXuat()
        { }

        public CChiTietPhieuXuat(ulong maphieu, ulong mamathang, ulong madonvitinh, ulong soluong, ulong dongia, ulong thanhtien)
        {
            Initialize(maphieu, mamathang, madonvitinh, soluong, dongia, thanhtien);
        }

        public void Initialize(ulong maphieu, ulong mamathang, ulong madonvitinh, ulong soluong, ulong dongia, ulong thanhtien)
        {
            this.MaPhieu = maphieu;
            this.MaMatHang = mamathang;
            this.MaDonViTinh = madonvitinh;
            this.SoLuong = soluong;
            this.DonGia = dongia;
            this.ThanhTien = thanhtien;
        }
        #endregion
    }
}
